let g:mdip_imgdir = '.'
let g:mdip_imgname = 'image'
let g:preview_markdown_vertical = 1
function s:map()
    if Installed('markdown-preview.nvim') || Installed('markdown-prveiw.vim')
        nmap <buffer><M-B> <Plug>MarkdownPreview
        nmap <buffer><M-X> <Plug>MarkdownPreviewStop
    endif
    if Installed('preview-markdown.vim')
        nmap <silent><buffer><M-R> :PreviewMarkdown<Cr>
    endif
    if Installed('md-img-paste.vim')
        nmap <silent><leader>I :call mdip#MarkdownClipboardImage()<CR>
    endif
endfunction
call s:map()
